package com.aspose.cells;

class zad {
   static byte[] a = new byte[]{64, 50, 5, -41, 105, -50, -51, 17, -89, 119, 0, -35, 1, 20, 60, 87};
   static byte[] b = new byte[]{48, 29, -46, -117, 66, -20, -50, 17, -98, 13, 0, -86, 0, 96, 2, -13};
   static byte[] c = new byte[]{64, 29, -46, -117, 66, -20, -50, 17, -98, 13, 0, -86, 0, 96, 2, -13};
   static byte[] d = new byte[]{32, 29, -46, -117, 66, -20, -50, 17, -98, 13, 0, -86, 0, 96, 2, -13};
   static byte[] e = new byte[]{16, 29, -46, -117, 66, -20, -50, 17, -98, 13, 0, -86, 0, 96, 2, -13};
   static byte[] f = new byte[]{-80, 111, 23, 121, -14, -73, -50, 17, -105, -17, 0, -86, 0, 109, 39, 118};
   static byte[] g = new byte[]{80, 29, -46, -117, 66, -20, -50, 17, -98, 13, 0, -86, 0, 96, 2, -13};
   static byte[] h = new byte[]{35, -98, -116, -105, -80, -44, -50, 17, -65, 45, 0, -86, 0, 63, 64, -48};
   static byte[] i = new byte[]{65, -110, 89, 76, 38, 105, 27, 16, -103, -110, 0, 0, 11, 101, -58, -7};
   static byte[] j = new byte[]{96, 29, -46, -117, 66, -20, -50, 17, -98, 13, 0, -86, 0, 96, 2, -13};
   static byte[] k = new byte[]{-32, -127, -47, -33, 47, 94, -50, 17, -92, 73, 0, -86, 0, 74, -128, 61};
   static byte[] l = new byte[]{4, 82, -29, 11, -111, -113, -50, 17, -99, -29, 0, -86, 0, 75, -72, 81};

   static int a(byte[] var0) {
      int[] var1 = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
      int[] var2 = var1;
      int var3 = var1.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         int var5 = var2[var4];
         byte[] var6 = a(var5);
         if (var6[0] == var0[0] && var6[15] == var0[15]) {
            boolean var7 = true;

            for(int var8 = 0; var8 < var6.length; ++var8) {
               if (var6[var8] != var0[var8]) {
                  var7 = false;
                  break;
               }
            }

            if (var7) {
               return var5;
            }
         }
      }

      return 11;
   }

   static byte[] a(int var0) {
      switch(var0) {
      case 0:
         return a;
      case 1:
         return b;
      case 2:
         return c;
      case 3:
         return d;
      case 4:
         return e;
      case 5:
         return f;
      case 6:
         return g;
      case 7:
         return h;
      case 8:
         return i;
      case 9:
         return j;
      case 10:
         return k;
      default:
         return null;
      }
   }

   static int b(int var0) {
      switch(var0) {
      case 17:
         return 1;
      case 18:
         return 2;
      case 19:
         return 4;
      case 20:
         return 16;
      case 21:
         return 32;
      case 22:
         return 64;
      case 23:
         return 128;
      default:
         return 0;
      }
   }

   static int a(int var0, int var1) {
      if (var1 == 2) {
         if (var0 % 2 != 0) {
            return 1;
         }
      } else {
         int var2 = var0 % 4;
         if (var2 != 0) {
            return 4 - var2;
         }
      }

      return 0;
   }
}
